import Vue from 'vue'
import App from './App'
import Store from "./store/store.js"
import {$http} from "@escook/request-miniprogram"
Vue.config.productionTip = false
uni.$http=$http
uni.$Store=Store
console.log(Store)
$http.baseUrl="https://www.uinav.com"
//请求拦截
$http.beforeRequest=function(options){
	  uni.showLoading({
	  	title:"数据正在加载。。。"
	  })
}
uni.$showMsg=function(title="数据请求失败"){
 uni.showToast({
	 title,
	 duration:1500,
	 icon:"none"
 })
	
}

//请求响应
$http.afterRequest=function(options){
	  uni.hideLoading()
}
App.mpType = 'app'

const app = new Vue({
	...App,
	Store

})
app.$mount()
